global.webpackJsonp([ 67 ], {
    BA1X: function(t, o) {},
    "K/KX": function(t, o, n) {
        Object.defineProperty(o, "__esModule", {
            value: !0
        });
        var i = n("uyqS"), a = n("5nAL");
        new (n.n(a).a)(i.a).$mount(), o.default = {
            config: {
                navigationBarTitleText: ""
            }
        };
    },
    dZcR: function(t, o, n) {
        var i = n("Gu7T"), a = n.n(i), s = n("mvHQ"), e = n.n(s), c = n("75He"), l = n("bWJ8"), u = n("zIHJ"), d = n("khYN"), r = n("IcnI"), v = n("RyI1"), f = n.n(v), g = n("LoF5"), h = n("F7NO"), m = n.n(h), p = n("YaEn"), I = n("Gfz+"), _ = n("8xno"), C = n("oKD1");
        o.a = {
            data: function() {
                return {
                    zuoyeTip: Object(C.a)("noZuoyeTip.png"),
                    accountId: "",
                    followFlag: !1,
                    accountInfo: {},
                    pageNum: 1,
                    total: 0,
                    postList: [],
                    currentVideo: "",
                    videoContext: "",
                    loadingSrc: m.a,
                    showLoading: !1,
                    noMoreInfo: !1,
                    totalPage: 0,
                    sharePostId: "",
                    followingAccounts: []
                };
            },
            mixins: [ I.a, _.a ],
            components: {
                "xc-icon": c.a,
                "xc-button": l.a,
                "post-view": g.a
            },
            onLoad: function() {
                this.accountId = this.$root.$mp.query.accountId || "", this.followFlag = this.$root.$mp.query.followFlag || !1, 
                this.getPosts(), this.getFollowing(), this.videoContext && this.videoContext.pause();
            },
            onUnload: function() {
                this.videoContext && this.videoContext.pause(), this.postList = [];
            },
            onShareAppMessage: function(t) {
                if ("button" === t.from) {
                    var o = "pages/index/main?r=accountPostDetail&postId=" + this.sharePostId;
                    return console.log(o), {
                        title: "快去分享动态吧！",
                        path: "pages/index/main?r=accountPostDetail&postId=" + this.sharePostId,
                        success: function() {
                            console.log("转发成功: " + e()(t));
                        },
                        fail: function(t) {
                            console.log("转发失败");
                        }
                    };
                }
            },
            onReachBottom: function() {
                if (this.showLoading = !0, this.pageNum >= this.totalPage) return this.noMoreInfo = !0, 
                void (this.showLoading = !1);
                this.pageNum += 1, this.getPosts();
            },
            watch: {},
            methods: {
                getFollowing: function() {
                    var t = this;
                    u.a.getFollowing().then(function(o) {
                        t.followingAccounts = o.followingAccounts || [], t.getAccountInfo();
                    });
                },
                getAccountInfo: function() {
                    var t = this;
                    u.a.getAccountInfo(this.accountId).then(function(o) {
                        var n = o.data;
                        if (t.accountInfo = n || {}, t.followingAccounts && t.followingAccounts.length > 0) {
                            var i = f()(t.followingAccounts, function(o) {
                                return o.accountId == t.accountId;
                            }) || [];
                            t.followFlag = i.length > 0;
                        }
                    });
                },
                sharePost: function(t) {
                    this.sharePostId = t.postId;
                },
                followingOps: function() {
                    var t = this;
                    this.followFlag ? Object(d.s)({
                        content: "确定取消关注？",
                        success: function(o) {
                            o.confirm && u.a.unfollow(t.accountId).then(function() {
                                t.followFlag = !1;
                            });
                        }
                    }) : u.a.follow(this.accountId).then(function() {
                        t.followFlag = !0;
                    });
                },
                getPosts: function() {
                    var t = this, o = {
                        accountId: r.a.state.loginInfo.accountId,
                        createAccountId: this.accountId,
                        pageNum: this.pageNum
                    };
                    u.a.getByAccountId(o).then(function(o) {
                        if (t.total = o.data.total || 0, t.totalPage = o.pages || 0, o.data.list && o.data.list.length > 0) {
                            var n, i = o.data.list;
                            i.forEach(function(t, o) {
                                t.likeList && t.likeList.length > 0 && (f()(t.likeList, function(t) {
                                    return t.accountId === r.a.state.loginInfo.accountId;
                                }).length > 0 && (t.likeFlag = !0), t.post && t.post.media.length > 9 && (t.showMore = !1)), 
                                t.favoriteList && t.favoriteList.length > 0 && (f()(t.favoriteList, function(t) {
                                    return t.createAccountId === r.a.state.loginInfo.accountId;
                                }).length > 0 && (t.favoriteFlag = !0), t.post && t.post.media.length > 9 && (t.showMore = !1));
                            }), (n = t.postList).push.apply(n, a()(i));
                        }
                    });
                },
                changeVideoState: function(t) {
                    "" !== this.currentVideo && this.currentVideo != t.media[0].mediaUrl && this.videoContext.pause(), 
                    this.currentVideo = t.media[0].mediaUrl, this.$set(t.media[0], "videoStop", !1), 
                    this.videoContext = wx.createVideoContext(t.media[0].mediaUrl), this.videoContext.play();
                },
                favoriteOps: function(t) {
                    var o = this;
                    t.favoriteFlag ? Object(d.s)({
                        content: "确定移出成长相册？",
                        success: function(n) {
                            n.confirm && u.b.deletePost(t.postId).then(function(n) {
                                o.$set(t, "favoriteFlag", !1);
                            });
                        }
                    }) : u.b.addPost(t.postId).then(function(n) {
                        o.$set(t, "favoriteFlag", !0);
                    });
                },
                giveLike: function(t) {
                    var o = this;
                    t.likeFlag ? u.b.cancelLike(t.postId).then(function() {
                        o.$set(t, "likeFlag", !1);
                        var n = t.likeNum ? parseInt(t.likeNum) - 1 : "";
                        o.$set(t, "likeNum", n);
                    }) : u.b.giveLike(t.postId).then(function() {
                        o.$set(t, "likeFlag", !0);
                        var n = t.likeNum ? parseInt(t.likeNum) + 1 : 1;
                        o.$set(t, "likeNum", n);
                    });
                },
                viewPostDetail: function(t) {
                    p.a.go({
                        key: "accountPostDetail",
                        params: {
                            accountId: t.createAccountId,
                            postId: t.postId
                        }
                    });
                }
            }
        };
    },
    fRjC: function(t, o, n) {
        var i = {
            render: function() {
                var t = this, o = t.$createElement, n = t._self._c || o;
                return n("div", {
                    staticClass: "account-home-page",
                    class: [ t.isIphoneX ? "is-iphone-x" : "", "theme-" + t.theme ]
                }, [ n("div", {
                    staticClass: "account-info-box"
                }, [ n("div", {
                    staticClass: "avatar-box"
                }, [ n("div", {
                    staticClass: "avatar"
                }, [ t.accountInfo.accountAvatar ? n("image", {
                    attrs: {
                        src: t.accountInfo.accountAvatar
                    }
                }) : n("xc-icon", {
                    attrs: {
                        color: "#e3e4e8",
                        size: "100",
                        name: "yonghu",
                        "size-unit": "rpx",
                        mpcomid: "0"
                    }
                }) ], 1) ]), t._v(" "), n("div", {
                    staticClass: "account-info"
                }, [ n("div", {
                    staticClass: "name"
                }, [ t._v("\n                " + t._s(t.accountInfo.accountName) + "\n                "), n("xc-button", {
                    attrs: {
                        type: t.followFlag ? "confirm" : "primary",
                        text: t.followFlag ? "已关注" : "+ 关注",
                        eventid: "0",
                        mpcomid: "1"
                    },
                    on: {
                        tap: t.followingOps
                    }
                }) ], 1), t._v(" "), "1" === t.accountInfo.accountType ? n("div", {
                    staticClass: "sign"
                }, [ n("xc-icon", {
                    attrs: {
                        color: "#349cec",
                        size: "12",
                        name: "guanfang",
                        mpcomid: "2"
                    }
                }), t._v(" "), n("span", [ t._v("官方账号") ]) ], 1) : t._e(), t._v(" "), n("div", {
                    staticClass: "bio"
                }, [ t._v("\n                " + t._s(t.accountInfo.description || "") + "\n            ") ]) ]), t._v(" "), n("div", {
                    staticClass: "follow-info"
                }, [ n("div", {
                    staticClass: "item"
                }, [ n("div", {
                    staticClass: "num"
                }, [ t._v(t._s(t.accountInfo.fansNum || 0)) ]), t._v(" "), n("div", {
                    staticClass: "info"
                }, [ t._v("粉丝") ]) ]), t._v(" "), n("div", {
                    staticClass: "item"
                }, [ n("div", {
                    staticClass: "num"
                }, [ t._v(t._s(t.accountInfo.followNum || 0)) ]), t._v(" "), n("div", {
                    staticClass: "info"
                }, [ t._v("关注") ]) ]), t._v(" "), n("div", {
                    staticClass: "item"
                }, [ n("div", {
                    staticClass: "num"
                }, [ t._v(t._s(t.total)) ]), t._v(" "), n("div", {
                    staticClass: "info"
                }, [ t._v("动态") ]) ]) ]) ]), t._v(" "), n("div", {
                    staticClass: "info-split-line"
                }, [ t._v("\n        全部动态\n    ") ]), t._v(" "), t.postList.length > 0 ? n("div", {
                    staticClass: "recommend-item-container"
                }, t._l(t.postList, function(o, i) {
                    return n("div", {
                        key: i,
                        staticClass: "recommend-item"
                    }, [ n("post-view", {
                        attrs: {
                            item: o,
                            media: o.media,
                            "home-flag": !0,
                            eventid: "1-" + i,
                            mpcomid: "3-" + i
                        },
                        on: {
                            videoChange: t.changeVideoState,
                            viewDetail: t.viewPostDetail
                        }
                    }), t._v(" "), n("div", {
                        staticClass: "set-view"
                    }, [ n("div", {
                        staticClass: "set-left"
                    }, [ n("div", {
                        staticClass: "cheng-zhang",
                        attrs: {
                            eventid: "2-" + i
                        },
                        on: {
                            tap: function(n) {
                                t.favoriteOps(o);
                            }
                        }
                    }, [ o.favoriteFlag ? n("xc-icon", {
                        attrs: {
                            name: "chengchangxiangcedian",
                            size: "14",
                            "ex-class": "normal-icon",
                            mpcomid: "5-" + i
                        }
                    }) : n("xc-icon", {
                        attrs: {
                            name: "chengchangxiangce",
                            size: "14",
                            color: "#888",
                            mpcomid: "4-" + i
                        }
                    }) ], 1), t._v(" "), n("div", {
                        staticClass: "dian-zan-ops",
                        attrs: {
                            eventid: "3-" + i
                        },
                        on: {
                            tap: function(n) {
                                t.giveLike(o);
                            }
                        }
                    }, [ o.likeFlag ? n("xc-icon", {
                        attrs: {
                            "ex-class": "normal-icon",
                            size: "36",
                            name: "dianzan",
                            "size-unit": "rpx",
                            mpcomid: "7-" + i
                        }
                    }) : n("xc-icon", {
                        attrs: {
                            color: "#888",
                            size: "34",
                            name: "dianzan1",
                            "size-unit": "rpx",
                            mpcomid: "6-" + i
                        }
                    }), t._v(" "), o.likeNum && "0" != o.likeNum ? n("span", {
                        staticClass: "like-num"
                    }, [ t._v(t._s(o.likeNum)) ]) : t._e() ], 1) ]), t._v(" "), n("div", {
                        staticClass: "set-right"
                    }, [ n("button", {
                        staticClass: "share-btn",
                        attrs: {
                            "open-type": "share",
                            "data-name": "pageShare",
                            eventid: "4-" + i
                        },
                        on: {
                            tap: function(n) {
                                t.sharePost(o);
                            }
                        }
                    }, [ n("xc-icon", {
                        attrs: {
                            name: "fenxiang3",
                            size: "16",
                            color: "#888",
                            mpcomid: "8-" + i
                        }
                    }) ], 1) ], 1) ]), t._v(" "), i !== t.postList.length - 1 ? n("div", {
                        staticClass: "split-line"
                    }) : t._e() ], 1);
                })) : n("div", {
                    staticClass: "no-post-page"
                }, [ n("img", {
                    staticClass: "noZuoye-image",
                    attrs: {
                        src: t.zuoyeTip,
                        mode: "aspectFill"
                    }
                }), t._v(" "), n("div", {
                    staticClass: "tip-text"
                }, [ t._v("\n            暂无推荐动态\n        ") ]) ]), t._v(" "), t.showLoading ? n("div", {
                    staticClass: "loading"
                }, [ n("img", {
                    attrs: {
                        src: t.loadingSrc
                    }
                }), t._v(" "), n("span", [ t._v("加载中") ]) ]) : t._e(), t._v(" "), t.noMoreInfo ? n("div", {
                    staticClass: "loading"
                }, [ n("span", [ t._v("没有更多内容") ]) ]) : t._e() ]);
            },
            staticRenderFns: []
        };
        o.a = i;
    },
    uyqS: function(t, o, n) {
        var i = n("dZcR"), a = n("fRjC"), s = n("hHyJ")(i.a, a.a, function(t) {
            n("BA1X");
        }, null, null);
        o.a = s.exports;
    }
}, [ "K/KX" ]);